{%include file="header.html"%}
<style>
td {font-weight: bold;}
.firtd {	width: 100px;	padding-right: 10px;	text-align: right;}
input {	width: 200px;}
textarea {	width: 350px;	height: 100px;}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>编辑广告位置</h3>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="" id="aspnetForm" name="form1">
    <table style=" width:100%;" cellpadding="0" cellspacing="0" class="table tb-type2">
      <tbody>
        <tr>
          <td class="firtd"> 广告位名称:</td>
          <td><input type="text" name="position_name" value="{%$position.position_name%}" required></td>
        </tr>
        <tr>
          <td class="firtd"> 广告位宽度:</td>
          <td><input type="text" name="ad_width" value="{%$position.ad_width%}" required> 像素</td>
        </tr>
        <tr>
          <td class="firtd"> 广告位高度:</td>
          <td><input type="text" name="ad_height" value="{%$position.ad_height%}" required> 像素</td>
        </tr>
        <tr>
          <td class="firtd"> 广告位描述:</td>
          <td><input style="width:350px;" name="position_desc" type="text" value="{%$position.position_desc%}"></td>
        </tr>
        <tr>
          <td class="firtd"> 广告位模板:</td>
          <td><textarea name="position_style" style="min-height:120px; max-height:120px;">{%$position.position_style%}</textarea></td>
        </tr>
        <tr>
          <td class="style1">&nbsp;</td>
          <td>
              <a href="JavaScript:void(0);" class="btn" onclick="reset()"><span>重置</span></a>
              <a href="JavaScript:void(0);" class="btn" onclick="$('#tj').click()"><span>确认提交</span></a>
          </td>
        </tr>
      </tbody>
    </table>
    <input type="reset" id="cz" style="display: none;">
    <input type="submit" id="tj" style="display:none;";>
  </form>
</div>
</body>
<script>
    // 重置方法
    function reset(){
        $('input').val('');
        $('textarea').text('');
    }
</script>
</html>